package com.niit.session4.operator;

import java.util.Scanner;

public class PrintNum {
	public static void main(String[] args) {
//		从键盘输入一个四位数，然后将个十百为拆开打印出来
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		System.out.println(a%10);
		System.out.println(a/10%10);
		System.out.println(a/100%10);
		System.out.println(a/1000%10);
		sc.close();
	}

}
